package com.peng.sell.utils;

import java.util.Random;
import java.util.UUID;

public class KeyUtil {

    public static synchronized String genUniqueKey() {
        Random random = new Random();
        return random.nextInt(10000)+String.valueOf(System.currentTimeMillis());
    }

    public static String getUUID(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }

}
